package com.itheima.health.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author ：shirongrong
 * @date ：Created in 2020/3/16
 * @description ：返回结果实体类
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result  implements Serializable {
    private boolean flag;//执行结果 ture为成功，false失败
    private String message; //返回结果信息
    private Object data; //返回数据
    public Result(boolean flag, String message) {
        this(flag,message,null);
    }
/**
    public Result(boolean flag, String message) {
        super();
        this.flag = flag;
        this.message = message;
    }

    public Result(boolean flag, String message, Object data) {
        this.flag = flag;
        this.message = message;
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }
    public void setFlag(boolean flag) {
        this.flag = flag;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
 */
}
